<?php
/**
 * Created by PhpStorm.
 * User: YC
 * Date: 2017/4/30
 * Time: 13:51
 */

namespace app\admin\validate;

use think\Validate;

class Admin extends Validate
{
    protected $rule = [
        'username|登录名' => 'require|mobile',
        'nickname|姓名'  => 'require|max:20',
        //'password|密码'  => 'length:6,16'
    ];
    protected $message  =   [

        'username.mobile'   => '登录名必须是手机号码,并保证不重复',

    ];

}